<?php

class TdSubmitField extends TdFormField {
  var $onclick;
  

  function __construct($id, $template="") {
    parent::__construct($id, $template);
  }
  
  function __toString() {
  	$pout = parent::__toString();
  	if ($pout != "") {
  		return $pout;
  	}
  	
    ob_start();

    print("<input id=\"".$this->id."\" name=\"".$this->id."\" type=\"submit\"");
    if (isset($this->onclick)) print(" onclick=\"".$this->onclick."\"");
    if (isset($this->cssclass)) print(" class=\"".$this->cssclass."\"");
    print(" value=\"".$this->value."\"\/>");

    return ob_get_clean();
  }

  function setOnClick($value) {
    $this->onclick = $value;
  }
  function getOnClick() {
    return $this->onclick;
  }
  
  
  function setForm($value) {
  	$this->submitformname = $value;
  }
  
  function getForm() {
  	return $this->submitformname;
  }
  
  
  
  function setSubmitname($value) {
  	$this->submitname = $value;
  }
  
  function getSubmitname() {
  	return $this->submitname;
  }
  
}

?>
